<?php
/* @var $this PessoaController */
/* @var $model Pessoa */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'pessoa-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'ide_pessoa'); ?>
		<?php echo $form->textField($model,'ide_pessoa',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'ide_pessoa'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nome'); ?>
		<?php echo $form->textField($model,'nome',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'nome'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'endereco'); ?>
		<?php echo $form->textField($model,'endereco',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'endereco'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'telefone'); ?>
		<?php echo $form->textField($model,'telefone',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'telefone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tipo'); ?>
		<?php echo $form->textField($model,'tipo',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'tipo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inscricaoEstadual'); ?>
		<?php echo $form->textField($model,'inscricaoEstadual',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'inscricaoEstadual'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cpf_cnpj'); ?>
		<?php echo $form->textField($model,'cpf_cnpj',array('size'=>18,'maxlength'=>18)); ?>
		<?php echo $form->error($model,'cpf_cnpj'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dtc_criacao'); ?>
		<?php echo $form->textField($model,'dtc_criacao'); ?>
		<?php echo $form->error($model,'dtc_criacao'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->